package MainPanels;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/*
 * This panel appears inside the 'ObjectToAddPanel' and contains a button representing one
 * specific object type. (The 'ObjectToAddPanel' contains 9 'SelectNewObjectPanel's)
 */

public class SelectNewObjectPanel extends JPanel {

	JButton chooseObjectButton;
	
	public SelectNewObjectPanel(String title)
	{
		chooseObjectButton = new JButton(title);
		chooseObjectButton.addActionListener(new DisplayNewTableButtonListener());
		
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		this.add(chooseObjectButton);
	}
	
	private class DisplayNewTableButtonListener implements ActionListener
	{
		public void actionPerformed(ActionEvent e) {
			
		}
	}
}
